// EventLoop

import 'dart:async';

void main() {
  release();
}

void release() {
  Timer.run(() => print('async code in event queue'));
  scheduleMicrotask(_dispose);
  _close();
}

void _close() {
  print('close resource');
}

void _dispose() {
  print('dispose run');
}